package top.moxingwang.javawork.lock;

public class ServiceB {
    public static void main(String[] args) {
        ServiceA serviceA = new ServiceA();
        Thread t1 = new Thread(()->{
            serviceA.print(100000);
        });
        Thread t2 = new Thread(()->{
            serviceA.say(100000);
        });

        t1.start();
        t2.start();


    }
}
